﻿namespace Home
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Threading.Tasks;
    using System.Windows;
    using System.Windows.Controls;
    using System.Windows.Data;
    using System.Windows.Documents;
    using System.Windows.Input;
    using System.Windows.Media;
    using System.Windows.Media.Imaging;
    using System.Windows.Navigation;
    using System.Windows.Shapes;

    public partial class OptimizationDataPage : Page
    {
        private static readonly RoutedUICommand generateCommentDataCommand = new RoutedUICommand("Generate Comment Data", "GenerateCommentData", typeof(OptimizationDataPage));
        private static readonly RoutedUICommand generateVisitDataCommand = new RoutedUICommand("Generate Visit Data", "GenerateVisitData", typeof(OptimizationDataPage));

        public OptimizationDataPage()
        {
            InitializeComponent();
        }

        public static RoutedUICommand GenerateCommentDataCommand
        {
            get { return generateCommentDataCommand; }
        }

        public static RoutedUICommand GenerateVisitDataCommand
        {
            get { return generateVisitDataCommand; }
        }

        private void Generate_Executed(object sender, ExecutedRoutedEventArgs e)
        {
            switch ((string)e.Parameter)
            {
                case "Comment":
                    GenerateCommentData();
                    break;
                case "Visit":
                    GenerateVisitData();
                    break;
            }
        }

        private static void GenerateCommentData()
        {
            throw new NotImplementedException();
        }

        private static void GenerateVisitData()
        {
            throw new NotImplementedException();
        }
    }
}
